//
//  YMLoginService.h
//  YMMedical
//
//  Created by y s on 2023/7/13.
//

#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN

@interface YMLoginService : NSObject

/** 发送验证码 */
+ (void)requestUserSendCodeWithPhone:(NSString *)phone
                              success:(void(^)(void))success
                              failure:(void(^)(NSString *message))failure;
/** 注册 */
+ (void)requestUserRegisterWithPhone:(NSString *)phone
                            password:(NSString *)password
                          confirmPwd:(NSString *)confirmPwd
                                code:(NSString *)code
                             success:(void(^)(void))success
                             failure:(void(^)(NSString *message))failure;
/** 短信登录 */
+ (void)requestUserSmsLoginWithPhone:(NSString *)phone
                             smsCode:(NSString *)smsCode
                             success:(void(^)(void))success
                             failure:(void(^)(NSString *message))failure;
/** 账号密码登录 */
+ (void)requestUserAccountLoginWithPhone:(NSString *)phone
                                password:(NSString *)password
                                 success:(void(^)(void))success
                                 failure:(void(^)(NSString *message))failure;
/** 登出 */
+ (void)requestUserLogoutAppSuccess:(void(^)(void))success
                            failure:(void(^)(NSString *message))failure;
/** 忘记密码接口 */
+ (void)requestUserForgetPwdWithPhone:(NSString *)phone
                             password:(NSString *)password
                           confirmPwd:(NSString *)confirmPwd
                                 code:(NSString *)code
                              success:(void(^)(void))success
                              failure:(void(^)(NSString *message))failure;
/** 修改密码 */
+ (void)requestUserUpdateOldPwdWithPassword:(NSString *)password
                                 confirmPwd:(NSString *)confirmPwd
                                oldPassword:(NSString *)oldPassword
                                    success:(void(^)(void))success
                                    failure:(void(^)(NSString *message))failure;
// 1:用户协议2:隐私政策
+ (void)requestUserProtocolWithType:(NSInteger)type
                            success:(void(^)(NSString *titleStr,NSString *contentStr))success
                            failure:(void(^)(NSString *message))failure;

/** 未登录时 获取脱兔token */
+ (void)requestNoLoginGetTuoTuTokenSuccess:(void(^)(void))success
                                   failure:(void(^)(NSString *message))failure;

@end

NS_ASSUME_NONNULL_END
